import time

# 同步：按顺序一件事情一件事件挨着做

def work1():
    for i in range(5):
        time.sleep(1)
        print(f"work({i})-------")


def work2():
    for i in range(5):
        time.sleep(1)
        print(f"work({i})--------")


if __name__ == '__main__':
    work1()
    work2()
